package com.cjw.demo.service.impl;

import com.cjw.demo.entity.SysRegion;
import com.cjw.demo.mapper.SysRegionMapper;
import com.cjw.demo.service.ISysRegionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 地区表 服务实现类
 * </p>
 *
 * @author cjw
 * @since 2021-11-19
 */
@Service
public class SysRegionServiceImpl extends ServiceImpl<SysRegionMapper, SysRegion> implements ISysRegionService {

    @Override
    public List<SysRegion> lists(int i) {
        List<SysRegion> list = this.baseMapper.lists(i);
        return list;
    }

    @Override
    public List<SysRegion> listshi(Integer parentId) {
        List<SysRegion> listshi = this.baseMapper.listshi(parentId);
        return listshi;
    }

    @Override
    public List<SysRegion> listxian(Integer paren) {
        List<SysRegion> xianlist = this.baseMapper.listxian(paren);
        return xianlist;
    }
}
